
package me.crawler;

public class RunCrawler {
	
	
	public static void main (String [] args){
		
		CrawlerFilter filter = new CrawlerFilter ();
		filter.addDelimiter("http://www.qut.edu.au/");
		CrawlerQueue queue = new CrawlerQueue();
		queue.push(new CrawlerHTMLPage("http://www.qut.edu.au/"));
		
		//queue.setMaxLinks(800);
		queue.setMaxDepth(1);
		
		

		CrawlerController controller = new CrawlerController(queue);
		controller.setFilter(filter);
		CrawlerDBManager dbm = new CrawlerDBManager("jdbc:mysql://localhost:3306" , "root"  , "password");
//		dbm.setFlushInterval(100);
		controller.setCrawlerDBManager(dbm);	
		controller.start();
			
	}
	}
